<template>
  <div class="home">
    <!-- 设置路由出口 -->
    <keep-alive include="index">
      <router-view></router-view>
    </keep-alive>
    <van-tabbar
      route
      inactive-color="#868686"
      active-color="#3296fa"
      placeholder
      class="tabbar"
    >
      <van-tabbar-item to="/index" name="home" icon="home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item to="/search" name="search" icon="search"
        >搜索</van-tabbar-item
      >
      <van-tabbar-item name="friends" to="/video" icon="video-o"
        >视频</van-tabbar-item
      >
      <van-tabbar-item to="/my" name="setting" icon="contact"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.home {
  height: 100%;
  .tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 60px;
  }
}
</style>
